{% extends "skeleton.html" %}
{% import "blog/post_macros.html" as pm %}

{% block header %}{{pm.html_header(resource_version)}}{% endblock %}
{% block pagetitleprefix %}{% endblock %}
{% block pagetitle %}{{post.title}} - War Worlds{% endblock %}
{% block title %}Development Blog{% endblock %}
{% block headerlinks %}<a href="/blog/rss" class="rss-btn"><img src="/img/v1/rss.png" alt="RSS" width="32" height="32" title="RSS Feed" /></a>{% endblock %}

{% block adminbuttons %}
    <li><a href="/admin/posts/{{post|post_id}}">Edit Post</a></li>
{% endblock %}

{% block maincontent %}
  <section class="content">
      <nav class="breadcrumbs">
      <ul>
        <li><a href="/">War Worlds</a>
        <li><a href="/blog">Blog</a>
        <li><span>{{post.title}}</span>
      </ul>
    </nav>

    {{ pm.post_body(post, False) }}
    <div id="post-comments">
      <div id="disqus_thread"></div>
      <script type="text/javascript">
        var disqus_shortname = "war-worlds";
        var disqus_identifier = "{{post|post_id}}";
        var disqus_url = "{{post|post_full_url}}";
        {% if is_development_server -%}
var disqus_developer = true;
        {%- endif %}

        (function() {
          var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
          dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
      </script>
      <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
      <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
    </div>
  </section>
  {{pm.body_footer(resource_version)}}
{% endblock %}